var gulp = require("gulp");
var gulp_sass = require("gulp-sass");
var gulp_min_css = require("gulp-minify-css");
var gulp_plumber = require("gulp-plumber");
var gulp_tinypng = require("gulp-tinypng");
var gulp_uglify = require("gulp-uglify");
var gulp_pngmin =require("gulp-pngmin");


gulp.task("mincss",function(){
	gulp.src('src/scss/**/*.scss')
	    .pipe(gulp_plumber())
	    .pipe(gulp_sass())
	    .pipe(gulp_min_css())
	    .pipe(gulp.dest('./dist/css'));
})
gulp.task("minimg",function(){
	gulp.src('src/img/**/*.*')
	    .pipe(gulp_plumber())
	    .pipe(gulp_tinypng("a-aEgyLJCDIITG1Wl-No1-RHU0yHIKdb"))
	    .pipe(gulp.dest('./dist/img'));
})